package cn.miju.ser.unionpay.service;

import cn.miju.ser.unionpay.vo.*;

/**
 * <pre>
 * 平台银联云闪付接口
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-14 11:29
 */
public interface UnionPayService {
    /**
     * 扫码支付下单
     * @param inVO {@link UpCreateQrcodeOrderInVO}
     * @return {@link UpCreateQrcodeOrderOutVO}
     */
    UpCreateQrcodeOrderOutVO createQrcodeOrder(UpCreateQrcodeOrderInVO inVO);

    /**
     * 查询订单
     * @param inVO {@link UpQueryOrderInVO}
     * @return {@link UpQueryOrderOutVO}
     */
    UpQueryOrderOutVO queryOrder(UpQueryOrderInVO inVO);

    /**
     * 订单退款
     * @param inVO {@link UpRefundOrderInVO}
     * @return {@link UpRefundOrderOutVO}
     */
    UpRefundOrderOutVO refundOrder(UpRefundOrderInVO inVO);
}
